package com.weitu.workflow.demo.service;

import com.alibaba.fastjson.JSONObject;
import com.weitu.permission.user.entity.User;
import com.weitu.workflow.demo.entity.LeaveApplication;
import org.fireflow.engine.definition.WorkflowDefinitionInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 工作流管理
 * 进行工作流流程的管理
 * Created by Administrator on 2017/3/17.
 */
public interface LeaveApplicationService {
    /***
     * 查询请假单列表数量
     * @return
     */
    public int queryLeaveApplicationCount(Map<String, Object> paramMap);

    /***
     * 查询请假单集合
     * @return
     */
    public List<LeaveApplication> queryLeaveApplicationList(Map<String, Object> paramMap);

    /***
     * 添加请假单
     * @param paramMap
     * @return
     */
    public int addLeaveApplication(Map<String, Object> paramMap);

    /***
     * 根据请假单id 查询请假单信息
     * @param id
     * @return
     */
    public LeaveApplication queryLeaveApplicationInfoById(String id);
}
